package com.lean.android.ad

object FeedAdProviderCache {

    private val cacheMap = hashMapOf<String, FeedAdProvider>()

    fun getProvider(key: String): FeedAdProvider {
        return cacheMap.getOrPut(key) {
            FeedAdProvider()
        }
    }

    fun clearProvider(key: String) {
        cacheMap.remove(key)
    }

}